package com.zyj.dao;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zyj.pojo.Asset;
@Repository
public class AssetDao extends BaseDao<Asset, Integer>{

	@SuppressWarnings("unchecked")
	public List<Asset> find() {
		String hql = "from Asset";
		Query query = getSession().createQuery(hql);
		return query.list();
	}
}
